import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//全局引入Vant2
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);
Vue.config.productionTip = false;

import axios from "axios";
axios.defaults.baseURL = "http://localhost:5000/";
// 表示跨域请求时是否需要使用凭证，跨域访问需要发送cookie时一定要加
// axios.defaults.withCredentials = true;
import VueAxios from "vue-axios";
Vue.use(VueAxios, axios);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
